package com.example.springboot.mybatisflex.mapper;

import com.example.springboot.mybatisflex.entity.SysUser;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author wwl
 * @version 1.0
 * @date 2024/8/14 11:24
 * @description:
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    @Select("SELECT * FROM sys_user WHERE user_name = #{name}")
    SysUser selectByUserName(@Param("name")String userName);
}
